<div class="hocvis view">
<h2><?php  __('Học vị');?></h2>
	<table class="table table-striped" style="width:30%">
		<tr>
			<td style="width:30%;font-weight:bold"><?php __('Mã học vị'); ?></td>
			<td><?= $hocvi['Hocvi']['hvi_maso']; ?>&nbsp;</td>
		</tr>
		<tr>
			<td style="width:30%;font-weight:bold"><?php __('Tên học vị'); ?></td>
			<td><?= $hocvi['Hocvi']['hvi_ten']; ?>&nbsp;</td>
		</tr>
		<tr>
			<td style="width:30%;font-weight:bold"><?php __('Ghi chú'); ?></td>
			<td><?= $hocvi['Hocvi']['ghichu']; ?>&nbsp;</td>
		</tr>
</table>
</div>

<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Cập nhật học vị', true), array('action' => 'edit', $hocvi['Hocvi']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa học vị', true), array('action' => 'delete', $hocvi['Hocvi']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hocvi['Hocvi']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Danh sách học vị', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Thêm học vị', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Danh sách cán bộ', true), array('controller' => 'canbos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Thêm cán bộ', true), array('controller' => 'canbos', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Canbos');?></h3>
	<?php if (!empty($hocvi['Canbo'])):?>
	<table class="table table-striped table-consended table-bordered table-hover">
	<tr>
		<th><?php __('STT'); ?></th>
		<th><?php __('Mã cán bộ'); ?></th>
		<th><?php __('Bộ môn'); ?></th>
		<th><?php __('Hocvi Id'); ?></th>
		<th><?php __('Chucdanh Id'); ?></th>
		<th><?php __('Taikhoan Id'); ?></th>
		<th><?php __('Cb Hoten'); ?></th>
		<th><?php __('Cb Ngaysinh'); ?></th>
		<th><?php __('Cb Noisinh'); ?></th>
		<th><?php __('Cb Diachi'); ?></th>
		<th><?php __('Cb Gioitinh'); ?></th>
		<th><?php __('Cb Dienthoai'); ?></th>
		<th><?php __('Cb Hsluong'); ?></th>
		<th><?php __('Cb Email'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		$stt = 0;
		foreach ($hocvi['Canbo'] as $canbo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
			
		?>
		<tr<?php echo $class;?>>
			<td><?php echo (++$stt) ?></td>
			<td><?php echo $canbo['cb_maso'];?></td>
			<td><?php echo $canbo['bomon_id'];?></td>
			<td><?php echo $canbo['hocvi_id'];?></td>
			<td><?php echo $canbo['chucdanh_id'];?></td>
			<td><?php echo $canbo['taikhoan_id'];?></td>
			<td><?php echo $canbo['cb_hoten'];?></td>
			<td><?php echo $canbo['cb_ngaysinh'];?></td>
			<td><?php echo $canbo['cb_noisinh'];?></td>
			<td><?php echo $canbo['cb_diachi'];?></td>
			<td><?php echo $canbo['cb_gioitinh'];?></td>
			<td><?php echo $canbo['cb_dienthoai'];?></td>
			<td><?php echo $canbo['cb_hsluong'];?></td>
			<td><?php echo $canbo['cb_email'];?></td>
			<td><?php echo $canbo['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'canbos', 'action' => 'view', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'canbos', 'action' => 'edit', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'canbos', 'action' => 'delete', $canbo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $canbo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Canbo', true), array('controller' => 'canbos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
